<%@ page import="org.nercita.gcrj.util.base.db.DbConnection"%>
<%@ page contentType="text/html;charset=GBK" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="org.nercita.gcrj.jypx.*" %>
<html>
<head>
  <title> </title>
</head>

<body>
<%
String sql="";
String url="";
CMyString MyString=new CMyString();
int mcid=java.lang.Integer.parseInt(request.getParameter("mc"));
 
		
String js= request.getParameter("DocContent") ;
	js=MyString.cvcode(js);
 DbConnection dbConn= new DbConnection(); 

 


 try{
	  
 

     sql="update xmgl set js='"+js+"' where id="+mcid;
                 
                dbConn.executeUpdate(sql);
	 }
	 catch(Exception ex){
	 System.out.println("Error in add doc!");
	 }


 dbConn.close();
			url="sfq.jsp?mc="+mcid;
		 

%>
<script language="javascript">
window.location.href="<%=url%>";
</script>
 
</body>
</html>
 